import request from '@/utils/request'
// 组织架构接口
// 新增部门
export const addDepartment = data => request.post('/company/department', data)
// 查询部门列表
export const getDepartment = () => request.get('/company/department')
// 修改部门
export const updateDepartment = data => request.put(`/company/department/${data.id}`, data)
// 删除部门
export const delDepartment = id => request.delete(`/company/department/${id}`)
// 查询部门详情
export const departmentDaile = id => request.get(`/company/department/${id}`)

